import java.util.Scanner;

public class Test {
    public static String solve(String str1, String str2) {
        int sum = 0;

        for (int i = 0; i < str1.length(); i++) {
            sum += (str1.charAt(i) - 'a');
        }

        for (int i = 0; i < str2.length(); i++) {
            sum += (str2.charAt(i) - 'a');
        }

        StringBuilder binary = new StringBuilder();

        while (sum > 0) {
            int remainder = sum % 2;
            binary.append(remainder);
            sum = sum / 2;
        }

        return binary.reverse().toString();
    }
        public static void main(String[] args) {
            String a = "1010";
            String b = "1011";
            System.out.println(solve(a, b)); // 输出: 10101
        }
        public static void main3(String[] args) {
            Scanner sc = new Scanner(System.in);
            String str1 = sc.nextLine();
            String str2 = sc.nextLine();
            StringBuilder result = new StringBuilder(str1);
            for (int i = 0; i < result.length(); i++) {
                if (str2.indexOf(result.charAt(i)) != -1) {
                    result.setCharAt(i, '0');
                }
            }

            StringBuilder finalResult = new StringBuilder();
            for (int i = 0; i < result.length(); i++) {
                if (result.charAt(i) != '0') {
                    finalResult.append(result.charAt(i)); // 只添加非 '0' 的字符
                }
            }

            // 输出结果
            System.out.println(finalResult.toString());
        }

    public static int fib(int n) {
        if (n <= 2) {
            return 1;
        }
        int a = 1, b = 1, c = 0;
        for (int i = 3; i <= n; i++) {
            c = a + b;
            a = b;
            b = c;
        }
        return c;
    }

    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ret = fib(n);
        System.out.println(ret);
    }
    public static void main1(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(sc.hasNextLine()){
            String input = sc.next();
            char ch = input.charAt(0);
            if(ch>='a'&&ch<='z'){
                System.out.println(Character.toUpperCase(ch));
            }else{
                System.out.println(Character.toLowerCase(ch));
            }
        }
    }

}
